package cn.wolfcode.ssm.mapper;

import cn.wolfcode.ssm.domain.Department;
import java.util.List;

/**
 * mybatis对实体对象的操作： sql怎么执行
 * @author Administrator
 *
 */
public interface DepartmentMapper {
	//删除
    int deleteByPrimaryKey(Long id);

    //添加
    int insert(Department entity);

    //查询单个
    Department selectByPrimaryKey(Long id);

    //查询所有
    List<Department> selectAll();

    //编辑
    int updateByPrimaryKey(Department entity);
}